# SPDX-FileCopyrightText: Copyright 2022-2024 深圳市同心圆网络有限公司
# SPDX-License-Identifier: GPL-3.0-only

type: object
properties:
  eventId:
    type: string
    description: 事件ID
  userId:
    type: string
    description: 事件相关用户ID
  userDisplayName:
    type: string
    description: 用户名称
  eventType:
    type: string
    description: 事件类型
    enum:
      - user
      - project
      - task
      - bug
      - sprit
      - disk
      - app
      - bookShelf
      - robot
      - earthly
      - gitlab
      - github
      - gitea
      - gitee
      - gogs
      - atomgit
      - jira
      - confluence
      - jenkins
  refType:
    type: string
    description: 事件关联类型
    enum:
      - none
      - user
      - project
      - channel
      - sprit
      - task
      - bug
      - book
      - robot
      - repo
  refId:
    type: string
    description: 事件关联ID
  eventTime:
    type: integer
    description: 事件事件
    format: int64
  eventData:
    type: object
    description: 事件内容